<?php

/**
 * Checkbox para seleccionar item en listado
 *
 * @category Zwei
 * @package Zwei_Admin
 * @subpackage Elements
 * @version $Id:$
 * @author Rodrigo Riquelme <rodrigo.riquelme.e@gmail.com>
 * @license GNU GPL-v2 http://www.gnu.org/licenses/gpl-2.0.html
 * @since 0.1
 * @link http://code.google.com/p/xml-admin/
 */

class Zwei_Admin_Elements_Idbox extends Zwei_Admin_Elements_Element
{
    function edit($i, $j, $display="inline")
    {
        return "<input type=\"hidden\" name=\"{$this->target}[$i]\" value=\"{$this->value}\"/>$this->value";
    }

    function display($i, $j)
    {
        return "<input id=\"field{$i}_{$j}\" type=\"checkbox\" name=\"{$this->target}[]\" value=\"{$this->value}\"/>";
    }
}
